//
//  Ext+UIBarButtonItem.swift
//  XJ8XWB
//
//  Created by 中二 on 2016/10/23.
//  Copyright © 2016年 中二. All rights reserved.
//

import UIKit

extension UIBarButtonItem{
    
    convenience init(setHighlightedImgName: String? = nil, title: String? = nil, target: Any?, action: Selector){
        
        self.init()
        
        let button = UIButton(setHighlightedImgName: setHighlightedImgName, title: title, target: target, action: action)
        
        self.customView = button
    }
    
    
}

